# 版本
cmake_minimum_required(VERSION 3.0)
#项目名
project(CloudDisk)
#c++标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED on)
# # 递归搜索所有 .cc 文件
file(GLOB_RECURSE SOURCES 
    "./src/*.cc")

# 添加可执行文件
add_executable(a.out ${SOURCES})

# 为 a.out目标添加编译选项
target_compile_options(a.out PRIVATE 
-g -Wall -fno-rtti -DBUG)
# 为 a.out 可执行文件单独设置输出路径（可选）
set_target_properties(a.out PROPERTIES
    RUNTIME_OUTPUT_DIRECTORY
    ../)
# 为 a.out 目标添加头文件搜索路径
target_include_directories(a.out PRIVATE ./include)
# find_package(wfrest REQUIRED)
#添加连接库
target_link_libraries(a.out PRIVATE 
wfrest alibabacloud-oss-cpp-sdk curl crypto pthread workflow ssl jwt log4cpp)
